package com.imooc.study.easycode.controller;

import com.imooc.study.easycode.entity.FieldHouse;
import com.imooc.study.easycode.service.FieldHouseService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 场地租赁发布(FieldHouse)表控制层
 *
 * @author makejava
 * @since 2020-04-28 11:37:27
 */
@RestController
@RequestMapping("fieldHouse")
public class FieldHouseController {
    /**
     * 服务对象
     */
    @Resource
    private FieldHouseService fieldHouseService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public FieldHouse selectOne(Long id) {
        return this.fieldHouseService.queryById(id);
    }

}